<?php get_header(); ?>

  <?php global $wp_query; $current_author = $wp_query->get_queried_object(); ?>

    <div class="post" id="header" style="height:186px;">
      <div class="header">
      <table><tbody><tr>
        <td width="1%"><div class="author"><a class="author" href="<?php echo $current_author->rss_icon_href; ?>" title="<?php echo $current_author->rss_icon_title; ?>"><img alt="<?php echo $current_author->rss_icon_title; ?>" class="author" style="width:240px;" src="<?php echo $current_author->rss_icon_med_src; ?>" /></a></div></td>
        <td><div class="meta">
          <h2 class="post_title">Entries written by <?php echo $current_author->display_name; ?></h2>
          <div class="post_categories"><?php if($current_author->user_url !="" && $current_author->user_url !="http://") {?><a href="<?php echo $current_author->user_url; ?>"><?php echo $current_author->user_url; ?></a><?php } ?></div>
          <div class="post_date">Author Profile Page</div>
        </td>
      </tr></tbody></table>
      </div>
      <div class="entry">
        <?php if (!empty($current_author->description)) : ?>
        <h3>About <?php echo $current_author->display_name; ?></h3>
        <p><?php echo $current_author->description; ?></p>
        <?php endif; ?>
      </div>
    </div> <!-- end header -->


  <table width="100%"><tbody><tr><td width="1%">
    <div class="posts">

		<?php if (have_posts()) : $full_post_tstamp = 4 * 24 * 60 * 60; /* 4 days */ ?>

		<div class="navigation">
			<div class="alignleft"><?php next_posts_link('&laquo; Previous Entries') ?></div>
			<div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></div>
		</div>

		<?php while (have_posts()) : the_post(); ?>

    	<?php $post_tstamp = get_the_time('U'); ?>
    	<?php $full_post = ($today_tstamp - $full_post_tstamp < $post_tstamp); ?>

        <div class="post<?php echo ($full_post)? " full-post" : "";?>" id="post-<?php the_ID(); ?>">
          <div class="header">
          <table><tbody><tr>
            <td width="1%"><div class="author"><a class="author" href="<?php echo get_author_posts_url($authordata->ID); ?>" title="Written by <?php echo get_the_author(); ?>"><img alt="<?php echo get_the_author(); ?>" class="author" src="<?php if(function_exists('jaybo_profile_get_user_icon')) echo jaybo_profile_get_user_icon($post->post_author); ?>" /></a></div></td>
            <td><div class="meta">
              <h2 class="post_title"><a class="post_title" href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
              <div class="post_categories"><?php the_category(','); ?></div>
              <div class="post_date"><?php the_time('F jS, Y') ?> at <? the_time('g:ia'); ?></div>
              </div>
            </td>
          </tr></tbody></table>
          </div>
          <div class="entry">
            <?php 
              if ($full_post) { the_content(); ?><div class="comments"><?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></div><?php } 
              else {  the_excerpt(); }
            ?>
          </div>
         <?php edit_post_link('<strong>Edit</strong>', '<div class="edit">', '</div>'); ?>
        </div>

		<?php endwhile; ?>


		<div class="navigation">
			<div class="alignleft"><?php next_posts_link('&laquo; Previous Entries') ?></div>
			<div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></div>
		</div>

	<?php else : ?>

		<h2 class="center">No posts by this author</h2>
		<?php include (TEMPLATEPATH . '/searchform.php'); ?>

	<?php endif; ?>

  </div> <!-- end posts -->
  </td><td>
  <?php get_sidebar("right"); ?>
  </td></tr></tbody></table> <!-- end content -->

<?php get_footer(); ?>
